Set Speed of Extended Motor

  • Function:

    magicbox.set_emotor(index, enable, speed)
    
  • Description: set the enabling status and speed of extended motor

  • Required parameter:

    • index: stepper index. 0: Stepper1; 1: Stepper2
    • enable: enable the stepper. True: enable; False: disable
    • speed: speed of stepper
  • Return:
    • True: The command has been finished.
    • False: The command has not been finished.
  • Example

    magicbox.set_emotor(index=1, enable=True, speed=50)
    

    Set the No.1 extended motor as enabling status and speed as 50.

results matching ""

    No results matching ""